const path = require('path')

module.exports = {
    rootDir: path.resolve(__dirname),
    moduleFileExtensions: ['js', 'json', 'vue'],
    transform: {
        '^.+\\.vue$': 'vue-jest',
        '^.+\\.js$': 'babel-jest'
    },
    moduleNameMapper: {
        '^@/(.*)$': '<rootDir>/src/$1'
    },
    testMatch: [
        '<rootDir>/tests/unit/**/*.spec.js'
    ],
    testEnvironment: 'jsdom'
}